/* 
 * File:   AgentProfile.cpp
 * Author: Imre Tabur
 * 
 */
#include <vector>
#include "AgentProfile.h"

using namespace CloudyStorage;
using namespace std;

AgentProfile::AgentProfile() {
}

AgentProfile::~AgentProfile() {
    this->deleteChannels();
}

void AgentProfile::addChannel(Channel *channel) {
    if (channel == 0) {
        return;
    }
    this->channels.push_back(channel);
}

void AgentProfile::deleteChannels() {
    vector<Channel *>::iterator it;
    for (it = this->channels.begin(); it < this->channels.end(); it++) {
        Channel * channel = *it;
        delete channel;
    }
    this->channels.clear();
}

void AgentProfile::load() {
    
}
